package com.jfs.qy.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description 异步线程池配置文件
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/11/8
 */
@ConfigurationProperties(prefix = "async.executor")
@Data
public class AsyncExecutorProperties {
    private final static String THREAD_NAME = "ASYNC-EXECUTOR-";
    /**
     * 核心线程数量
     */
    private Integer corePoolSize = 10;
    /**
     * 最大线程数量
     */
    private Integer maxPoolSize = 20;
    /**
     * 队列大小
     */
    private Integer queueCapacity=999;
    /**
     * 线程名称前缀
     */
    private String namePrefix = THREAD_NAME;


    public static final String BEAN_NAME = "asyncServiceExecutor";

}
